package com.zaker.touchtv.data;

import com.google.gson.annotations.SerializedName;

import android.os.Parcel;
import android.os.Parcelable;

public class CreateLiveEntry implements Parcelable {

  private String pk;

  private String name;

  @SerializedName("sub_title")
  private String subTitle;

  private String rtmp;

  private String hls;

  private String m3u8;

  private String pic;

  private String web;

  private String stat;

  @SerializedName("is_test")
  private String isTest;

  private String chat;

  @SerializedName("push_rtmp_server")
  private PushRtmpEntry pushRtmpServer;

  @SerializedName("default_videoSize")
  private String defaultVideoSize;

  public CreateLiveEntry() {
  }

  public String getPk() {
    return pk;
  }

  public String getName() {
    return name;
  }

  public String getSubTitle() {
    return subTitle;
  }

  public String getRtmp() {
    return rtmp;
  }

  public String getHls() {
    return hls;
  }

  public String getM3u8() {
    return m3u8;
  }

  public String getPic() {
    return pic;
  }

  public String getWeb() {
    return web;
  }

  public String getStat() {
    return stat;
  }

  public String getIsTest() {
    return isTest;
  }

  public String getChat() {
    return chat;
  }

  public String getDefaultVideoSize() {
    return defaultVideoSize;
  }

  public PushRtmpEntry getPushRtmpServer() {
    return pushRtmpServer;
  }

  @Override
  public int describeContents() {
    return 0;
  }

  @Override
  public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(this.pk);
    dest.writeString(this.name);
    dest.writeString(this.subTitle);
    dest.writeString(this.rtmp);
    dest.writeString(this.hls);
    dest.writeString(this.m3u8);
    dest.writeString(this.pic);
    dest.writeString(this.web);
    dest.writeString(this.stat);
    dest.writeString(this.isTest);
    dest.writeString(this.chat);
    dest.writeParcelable(this.pushRtmpServer, flags);
    dest.writeString(this.defaultVideoSize);
  }

  protected CreateLiveEntry(Parcel in) {
    this.pk = in.readString();
    this.name = in.readString();
    this.subTitle = in.readString();
    this.rtmp = in.readString();
    this.hls = in.readString();
    this.m3u8 = in.readString();
    this.pic = in.readString();
    this.web = in.readString();
    this.stat = in.readString();
    this.isTest = in.readString();
    this.chat = in.readString();
    this.pushRtmpServer = in.readParcelable(PushRtmpEntry.class.getClassLoader());
    this.defaultVideoSize = in.readString();
  }

  public static final Creator<CreateLiveEntry> CREATOR = new Creator<CreateLiveEntry>() {
    @Override
    public CreateLiveEntry createFromParcel(Parcel source) {
      return new CreateLiveEntry(source);
    }

    @Override
    public CreateLiveEntry[] newArray(int size) {
      return new CreateLiveEntry[size];
    }
  };
}
